#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
    float a,b,c, d,e,f,diemtb;
    printf("nhap diem thi: ",a,b,c);
    scanf("%f%f%f",&a,&b,&c);
    printf("nhap he so 3 mon: ",d,e,f);
    scanf("%f%f%f",&d,&e,&f);
     diemtb=((a*d+b*e+c*f)/(d+e+f));
    printf("diem tb la: %f",diemtb);
    getch(); 
}
